#include<iostream>
using namespace std;

class Person
{
public:
    Person(int age)
    {
        this->age = age;//this指针指向 被调用成员函数的所属对象，此处指向p
    }
    int age;
};

void test()
{
    Person p(10);
    cout << "p的年龄为:" << p.age << endl;
}

int main()
{
    test();

    return 0;
}